package com.px.patient.controller;

import com.px.common.core.controller.BaseController;
import com.px.common.core.domain.AjaxResult;
import com.px.patient.service.IDoctorService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.text.ParseException;

/**
 * DoctorController
 *
 * @author 品讯科技
 * @date: 2024/06/13 14:53
 */
@Api(tags = "医生")
@RestController
@RequestMapping("/doctor")
public class DoctorController extends BaseController {

    @Resource
    private IDoctorService doctorService;

    @GetMapping("/list")
    @ApiOperation("出诊医生列表")
    public AjaxResult list(@RequestParam(name = "selectDateStr", required = false) String selectDateStr) throws ParseException {
        return success(doctorService.list(selectDateStr));
    }


}
